package com.geekstudy.week1;

public class Week1HelloWorld {

    public static void main(String[] args) {
        // 基本类型
        boolean week1True = true;
        System.out.println(" basic boolean: " + week1True);

        byte week1Byte = 121;
        System.out.println(" basic byte: " + week1Byte);

        char week1Char = 'Q';
        System.out.println(" basic char: " + week1Char);

        short week1Short = 12312;
        System.out.println(" basic short: " + week1Short);

        int week1Int = 12345678;
        System.out.println(" basic int: " + week1Int);

        long week1Long = 12131415161718l;
        System.out.println(" basic long: " + week1Long);

        float week1Float = 123.12f;
        System.out.println(" basic float: " + week1Float);

        double week1Double = 2345.1234;
        System.out.println(" basic double: " + week1Double);

        int week1Cal1 = week1Byte + 123;
        int week1Cal2 = week1Byte - 12;
        int week1Cal3 = week1Int * 12;
        int week1Cal4 = week1Int / 9;
        System.out.println(" week1Cal1: " + week1Cal1 + "  from " + week1Byte + " + 123 ");
        System.out.println(" week1Cal2: " + week1Cal2 + "  from " + week1Byte + " - 12 ");
        System.out.println(" week1Cal3: " + week1Cal3 + "  from " + week1Int + " * 12 ");
        System.out.println(" week1Cal4: " + week1Cal4 + "  from " + week1Int + " / 9 ");



        // if 判断
        if(week1Int > 1234) {
            System.out.println(" week1 larger than 1234 week1Int:" + week1Int);
        } else {
            System.out.println(" week1 small or equals than 1234 week1Int:" + week1Int);
        }

        // for
        for(int size = 0; size < 5; size++) {
            System.out.println(" for loop size:" + size);
        }


    }
}
